let obj = {   // Object
    name: '梅老板',
    age: 18,
    health: 100,
    smoking: function () {
        console.log('来根华子');
        this.health--
    },
    drink: function () {
        console.log('来杯台子');
        this.health++
    }
}

// obj.age = obj.age + 1   // obj.age++

// obj.smoking()
// obj.smoking()
// obj.smoking()
// obj.drink()
// obj.drink()
// obj.drink()
// obj.drink()

// obj.girlfriend = '章若楠'

// let meiGirl = 'myGirl'
// obj.meiGril ='章若楠'    //不成立,不能将'myGirl'视为key
// obj[meiGirl] = '章若楠'//只有加上[]才能将meiGirl视为一个变量,就会去查找它的值

delete obj.smoking






let obj2 = new Object({
    name: '胡总',
    age: 19,
})

// console.log(obj2);